package com.shicijiaoliu.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Active {

  private long id;
  private String name;
  private String description;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private LocalDateTime starttime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private LocalDateTime endtime;
  private String bi;
  private long num;
  private long aId;


  public Active(String name, String description, LocalDateTime starttime, LocalDateTime endtime, String bi) {
    this.name =name;
    this.bi = bi;
    this.starttime = starttime;
    this.endtime = endtime;
    this.description = description;
  }

  public Active(){}

  public Active(String name, long id, String description, LocalDateTime starttime, LocalDateTime endtime, String bi) {
    this.name =name;
    this.bi = bi;
    this.starttime = starttime;
    this.endtime = endtime;
    this.description = description;
    this.id = id;
  }
}
